package com.leeoohoo.user.dto;

import com.leeoohoo.base.PageDTO;
import com.leeoohoo.user.MyUser;
import com.oohoo.spacestationspringbootstarter.dto.query.DTO;
import com.oohoo.spacestationspringbootstarter.dto.query.annotation.Eq;
import com.oohoo.spacestationspringbootstarter.dto.query.annotation.From;
import com.oohoo.spacestationspringbootstarter.dto.query.annotation.LikeLeft;
import lombok.Data;

@Data
@From(MyUser.class)
public class SearchDTO extends PageDTO implements DTO {

    private Long id;

    @Eq
    private String username;
    @LikeLeft(required = true)
    private String phone;

    @LikeLeft
    private String email;

    private Integer age;

    private String job;

    private Long state;
}
